<?php

namespace App\Controller\Index;


use App\Controller\BaseController;
use App\Services\Index\FateService;
use Hyperf\Context\Context;
use Hyperf\Di\Annotation\Inject;

class FateController extends BaseController
{

    #[Inject]
    public FateService $fateService;

    /**
     * Note - 缘分推荐弹出框
     * DateTime 2024/8/13 10:13
     * User Admin
     */
    public function layer()
    {
        $userInfo = Context::get('user');
        $language = Context::get('language');
        $data = $this->fateService->layer($userInfo, $language);
        return $this->return($data);

    }

}